@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;700&display=swap');

:root {
    --primary-color: #2a4387;
    --secondary-color: #3b82f6;
    --accent-color: #6366f1;
    --text-color: #1f2937;
    --light-bg: #f9fafb;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --info-color: #f59e0b;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Tajawal', sans-serif;
    color: var(--text-color);
    line-height: 1.6;
    background-color: var(--light-bg);
    overflow-x: hidden;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
}

header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 2rem 1rem;
    text-align: center;
}

.question-card {
    background-color: white;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
    overflow: hidden;
    transition: all 0.3s ease;
}

.question-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-2px);
}

.question {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    color: white;
    padding: 1.25rem 1.5rem;
    display: flex;
    align-items: center;
    position: relative;
}

.question h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin: 0;
}

.question-number {
    background-color: rgba(255, 255, 255, 0.2);
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1.25rem;
    margin-left: 1rem;
}

.content {
    padding: 1.5rem;
}

.question-text, .answer, .explanation {
    padding: 0.75rem;
    border-radius: 0.5rem;
}

.question-text {
    background-color: #f8fafc;
    border-right: 4px solid #4f46e5;
}

.answer {
    background-color: #f0fdf4;
    border-right: 4px solid #10b981;
}

.explanation {
    background-color: #fffbeb;
    border-right: 4px solid #f59e0b;
}

.graph-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1.5rem 0;
    background-color: white;
    padding: 1rem;
    border-radius: 0.5rem;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.graph {
    max-width: 100%;
    height: auto;
}

.graph-caption {
    text-align: center;
    margin-top: 0.75rem;
    font-size: 0.875rem;
    color: #4b5563;
}

.example-box {
    background-color: #f0f9ff;
    border-right: 4px solid #3b82f6;
    padding: 1rem;
    border-radius: 0.5rem;
    margin: 1rem 0;
}

.formula-box {
    background-color: #f3f4f6;
    padding: 0.75rem;
    border-radius: 0.375rem;
    font-family: 'Geist Mono', monospace;
    font-size: 0.875rem;
    direction: ltr;
    text-align: center;
}

.conclusion-box {
    background-color: #f1f5f9;
    border: 1px solid #cbd5e1;
    border-radius: 0.5rem;
    padding: 1rem;
    font-weight: 500;
}

.list-alpha {
    list-style-type: arabic-indic;
}

.list-disc {
    list-style-type: disc;
}

table {
    border-collapse: collapse;
    width: 100%;
}

th, td {
    padding: 0.5rem 0.75rem;
    text-align: center;
    border: 1px solid #e5e7eb;
}

th {
    background-color: #f3f4f6;
    font-weight: 600;
}

.nav-btn {
    padding: 0.5rem 1rem;
    border-radius: 0.375rem;
    background-color: #f3f4f6;
    color: #4b5563;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.nav-btn:hover {
    background-color: #e5e7eb;
}

.nav-btn.active {
    background-color: var(--primary-color);
    color: white;
}

/* Font for formulas */
.font-geist-mono {
    font-family: 'Geist Mono', monospace;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .question h2 {
        font-size: 1.25rem;
    }
    
    .question-number {
        width: 2rem;
        height: 2rem;
        font-size: 1rem;
    }
    
    .content {
        padding: 1rem;
    }
    
    .nav-btn {
        font-size: 0.875rem;
        padding: 0.375rem 0.75rem;
    }
}
